home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows (5th Edition) / Programming Windows, 5th ed. - Companion CD (097-0002183)(1999).iso / Chap21 / StrProg / StrProg.mak < prev    next >
Encoding:
Text File  |  1998-10-09  |  5.3 KB  |  219 lines

  1. # Microsoft Developer Studio Generated NMAKE File, Based on StrProg.dsp
  2. !IF "$(CFG)" == ""
  3. CFG=StrProg - Win32 Debug
  4. !MESSAGE No configuration specified. Defaulting to StrProg - Win32 Debug.
  5. !ENDIF 
  6.  
  7. !IF "$(CFG)" != "StrProg - Win32 Release" && "$(CFG)" != "StrProg - Win32 Debug"
  8. !MESSAGE Invalid configuration "$(CFG)" specified.
  9. !MESSAGE You can specify a configuration when running NMAKE
  10. !MESSAGE by defining the macro CFG on the command line. For example:
  11. !MESSAGE 
  12. !MESSAGE NMAKE /f "StrProg.mak" CFG="StrProg - Win32 Debug"
  13. !MESSAGE 
  14. !MESSAGE Possible choices for configuration are:
  15. !MESSAGE 
  16. !MESSAGE "StrProg - Win32 Release" (based on "Win32 (x86) Application")
  17. !MESSAGE "StrProg - Win32 Debug" (based on "Win32 (x86) Application")
  18. !MESSAGE 
  19. !ERROR An invalid configuration is specified.
  20. !ENDIF 
  21.  
  22. !IF "$(OS)" == "Windows_NT"
  23. NULL=
  24. !ELSE 
  25. NULL=nul
  26. !ENDIF 
  27.  
  28. CPP=cl.exe
  29. MTL=midl.exe
  30. RSC=rc.exe
  31.  
  32. !IF  "$(CFG)" == "StrProg - Win32 Release"
  33.  
  34. OUTDIR=.\Release
  35. INTDIR=.\Release
  36. # Begin Custom Macros
  37. OutDir=.\Release
  38. # End Custom Macros
  39.  
  40. !IF "$(RECURSE)" == "0" 
  41.  
  42. ALL : "$(OUTDIR)\StrProg.exe"
  43.  
  44. !ELSE 
  45.  
  46. ALL : "StrLib - Win32 Release" "$(OUTDIR)\StrProg.exe"
  47.  
  48. !ENDIF 
  49.  
  50. !IF "$(RECURSE)" == "1" 
  51. CLEAN :"StrLib - Win32 ReleaseCLEAN" 
  52. !ELSE 
  53. CLEAN :
  54. !ENDIF 
  55.     -@erase "$(INTDIR)\StrProg.obj"
  56.     -@erase "$(INTDIR)\StrProg.res"
  57.     -@erase "$(INTDIR)\vc60.idb"
  58.     -@erase "$(OUTDIR)\StrProg.exe"
  59.  
  60. "$(OUTDIR)" :
  61.     if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  62.  
  63. CPP_PROJ=/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /Fp"$(INTDIR)\StrProg.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c 
  64. MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 
  65. RSC_PROJ=/l 0x409 /fo"$(INTDIR)\StrProg.res" /d "NDEBUG" 
  66. BSC32=bscmake.exe
  67. BSC32_FLAGS=/nologo /o"$(OUTDIR)\StrProg.bsc" 
  68. BSC32_SBRS= \
  69.     
  70. LINK32=link.exe
  71. LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /incremental:no /pdb:"$(OUTDIR)\StrProg.pdb" /machine:I386 /out:"$(OUTDIR)\StrProg.exe" 
  72. LINK32_OBJS= \
  73.     "$(INTDIR)\StrProg.obj" \
  74.     "$(INTDIR)\StrProg.res" \
  75.     "$(OUTDIR)\StrLib.lib"
  76.  
  77. "$(OUTDIR)\StrProg.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
  78.     $(LINK32) @<<
  79.   $(LINK32_FLAGS) $(LINK32_OBJS)
  80. <<
  81.  
  82. !ELSEIF  "$(CFG)" == "StrProg - Win32 Debug"
  83.  
  84. OUTDIR=.\Debug
  85. INTDIR=.\Debug
  86. # Begin Custom Macros
  87. OutDir=.\Debug
  88. # End Custom Macros
  89.  
  90. !IF "$(RECURSE)" == "0" 
  91.  
  92. ALL : "$(OUTDIR)\StrProg.exe"
  93.  
  94. !ELSE 
  95.  
  96. ALL : "StrLib - Win32 Debug" "$(OUTDIR)\StrProg.exe"
  97.  
  98. !ENDIF 
  99.  
  100. !IF "$(RECURSE)" == "1" 
  101. CLEAN :"StrLib - Win32 DebugCLEAN" 
  102. !ELSE 
  103. CLEAN :
  104. !ENDIF 
  105.     -@erase "$(INTDIR)\StrProg.obj"
  106.     -@erase "$(INTDIR)\StrProg.res"
  107.     -@erase "$(INTDIR)\vc60.idb"
  108.     -@erase "$(INTDIR)\vc60.pdb"
  109.     -@erase "$(OUTDIR)\StrProg.exe"
  110.     -@erase "$(OUTDIR)\StrProg.ilk"
  111.     -@erase "$(OUTDIR)\StrProg.pdb"
  112.  
  113. "$(OUTDIR)" :
  114.     if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  115.  
  116. CPP_PROJ=/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "UNICODE" /Fp"$(INTDIR)\StrProg.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c 
  117. MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 
  118. RSC_PROJ=/l 0x409 /fo"$(INTDIR)\StrProg.res" /d "_DEBUG" 
  119. BSC32=bscmake.exe
  120. BSC32_FLAGS=/nologo /o"$(OUTDIR)\StrProg.bsc" 
  121. BSC32_SBRS= \
  122.     
  123. LINK32=link.exe
  124. LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /incremental:yes /pdb:"$(OUTDIR)\StrProg.pdb" /debug /machine:I386 /out:"$(OUTDIR)\StrProg.exe" /pdbtype:sept 
  125. LINK32_OBJS= \
  126.     "$(INTDIR)\StrProg.obj" \
  127.     "$(INTDIR)\StrProg.res" \
  128.     "$(OUTDIR)\StrLib.lib"
  129.  
  130. "$(OUTDIR)\StrProg.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
  131.     $(LINK32) @<<
  132.   $(LINK32_FLAGS) $(LINK32_OBJS)
  133. <<
  134.  
  135. !ENDIF 
  136.  
  137. .c{$(INTDIR)}.obj::
  138.    $(CPP) @<<
  139.    $(CPP_PROJ) $< 
  140. <<
  141.  
  142. .cpp{$(INTDIR)}.obj::
  143.    $(CPP) @<<
  144.    $(CPP_PROJ) $< 
  145. <<
  146.  
  147. .cxx{$(INTDIR)}.obj::
  148.    $(CPP) @<<
  149.    $(CPP_PROJ) $< 
  150. <<
  151.  
  152. .c{$(INTDIR)}.sbr::
  153.    $(CPP) @<<
  154.    $(CPP_PROJ) $< 
  155. <<
  156.  
  157. .cpp{$(INTDIR)}.sbr::
  158.    $(CPP) @<<
  159.    $(CPP_PROJ) $< 
  160. <<
  161.  
  162. .cxx{$(INTDIR)}.sbr::
  163.    $(CPP) @<<
  164.    $(CPP_PROJ) $< 
  165. <<
  166.  
  167.  
  168. !IF "$(NO_EXTERNAL_DEPS)" != "1"
  169. !IF EXISTS("StrProg.dep")
  170. !INCLUDE "StrProg.dep"
  171. !ELSE 
  172. !MESSAGE Warning: cannot find "StrProg.dep"
  173. !ENDIF 
  174. !ENDIF 
  175.  
  176.  
  177. !IF "$(CFG)" == "StrProg - Win32 Release" || "$(CFG)" == "StrProg - Win32 Debug"
  178.  
  179. !IF  "$(CFG)" == "StrProg - Win32 Release"
  180.  
  181. "StrLib - Win32 Release" : 
  182.    cd "."
  183.    $(MAKE) /$(MAKEFLAGS) /F .\StrLib.mak CFG="StrLib - Win32 Release" 
  184.    cd "."
  185.  
  186. "StrLib - Win32 ReleaseCLEAN" : 
  187.    cd "."
  188.    $(MAKE) /$(MAKEFLAGS) /F .\StrLib.mak CFG="StrLib - Win32 Release" RECURSE=1 CLEAN 
  189.    cd "."
  190.  
  191. !ELSEIF  "$(CFG)" == "StrProg - Win32 Debug"
  192.  
  193. "StrLib - Win32 Debug" : 
  194.    cd "."
  195.    $(MAKE) /$(MAKEFLAGS) /F .\StrLib.mak CFG="StrLib - Win32 Debug" 
  196.    cd "."
  197.  
  198. "StrLib - Win32 DebugCLEAN" : 
  199.    cd "."
  200.    $(MAKE) /$(MAKEFLAGS) /F .\StrLib.mak CFG="StrLib - Win32 Debug" RECURSE=1 CLEAN 
  201.    cd "."
  202.  
  203. !ENDIF 
  204.  
  205. SOURCE=.\StrProg.c
  206.  
  207. "$(INTDIR)\StrProg.obj" : $(SOURCE) "$(INTDIR)"
  208.  
  209.  
  210. SOURCE=.\StrProg.rc
  211.  
  212. "$(INTDIR)\StrProg.res" : $(SOURCE) "$(INTDIR)"
  213.     $(RSC) $(RSC_PROJ) $(SOURCE)
  214.  
  215.  
  216.  
  217. !ENDIF 
  218.  
  219.